day = 9
x = 1
while day > 0:
    x = (x + 1) * 2
    day -= 1
print("total=", x)
